#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "qdialoglocate.h"

#include <QMainWindow>
#include <QStandardItemModel>
#include <QItemSelectionModel>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void setActLocateEnable(bool enable);
    void setDialogLocaltNull();
    void setCellText(int row, int column, QString text);

private slots:
    void on_actTabSetSize_triggered();

    void on_actTabLocate_triggered();

    void on_tableView_clicked(const QModelIndex &index);

private:
    Ui::MainWindow *ui;
private:
    QStandardItemModel *theModel;
    QItemSelectionModel *theSelection;
    QDialogLocate* dialogLocate;
};
#endif // MAINWINDOW_H
